{% load i18n djangobmf_angularjs %}{% spaceless %}
<table class="table table-striped table-condensed table-hover">
    <thead>
        <tr>
            <th width="15%">{% trans "Date" %}</th>
            <th width="40%">{% trans "Subject" %}</th>
            <th width="20%">{% trans "Employee" %}</th>
            <th width="20%">{% trans "Time" %}</th>
        </tr>
    </thead>
    <tbody>
        <tr ng-repeat="obj in data">
            <td>
                <a bmf-detail="{% ng "obj.pk" %}" href="#">
                    {% ng "obj.start|django_short_datetime" %}
                </a>
            </td>
            <td>
                <span ng-if="obj.end == null" class="label label-warning">{% trans "Active" %}</span>
                {% ng "obj.summary" %}
                <div ng-if="obj.project || obj.task" class="text-muted small">
                    <strong ng-if="obj.project">{% ng "obj.project_name" %}</strong>
                    {% ng "obj.task_name" %}
                </div>
            </td>
            <td>{% ng 'obj.employee_name || "---"' %}</td>
            <td>{% ng "obj.timesince" %}</td>
        </tr>
    </tbody>
</table>

{% endspaceless %}
